package jdly.water.api.dao.cost;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import jdly.water.entity.cost.UserAccountDetail;

public interface DetailDao extends JpaRepository<UserAccountDetail,String>{

	@Query(value=" SELECT a FROM UserAccountDetail a WHERE a.meter.id = ?1   ORDER BY a.year desc,a.month desc,id desc ")
	public List<UserAccountDetail> list(String accountid );
	
}
